import QtQuick 2.0
import QtQuick.Controls 2.5
import QtQuick.Layouts 1.3

Item {
    id: element
    property alias titleText: page5Title.text
    property alias p5s_gridLayout: p5s_gridLayout
    property int checkBoxNum: 1

    Text {
        id: page5Title
        text: qsTr("A通道限制动作状态")
        font.pixelSize: height*0.9
        color: "#40ffff"
        verticalAlignment: Text.AlignBottom
        horizontalAlignment: Text.AlignHCenter
        height: parent.height/10
        anchors.top: parent.top
        anchors.right: parent.right
        anchors.left: parent.left
        anchors.leftMargin: 0
        anchors.topMargin: parent.height/40
    }

    GridLayout {
        id: p5s_gridLayout
        flow: GridLayout.TopToBottom
        columns: 4
        rows: 2
        anchors.top: page5Title.bottom
        anchors.right: parent.right
        anchors.bottom: parent.bottom
        anchors.left: parent.left
        anchors.leftMargin: 50*main_screen.minSize
//        EXC_Normal_CheckBoxSytle{
//            text: "111"
//            width: 30
//            height: 30
//        }
    }


    Component.onCompleted: {
        var t_obj;
        var component = Qt.createComponent("EXC_Normal_CheckBoxSytle.qml")
        for(var i=0; i<checkBoxNum; i++){
            t_obj = component.createObject(p5s_gridLayout);
            t_obj.textSize = Qt.binding(function(){return 35*main_screen.minSize;})
        }
    }



}

/*##^##
Designer {
    D{i:0;autoSize:true;formeditorZoom:1.5;height:480;width:640}
}
##^##*/
